//
//  SQCheckRecordViewController.m
//  energy
//
//  Created by 周曼迪 on 2021/7/14.
//

#import "SQCheckRecordViewController.h"

#import "SQCheckRecordModel.h"


@interface SQCheckRecordViewController ()<BaseTableVCInterface>

@end

@implementation SQCheckRecordViewController

- (void)viewDidLoad {
    self.tableViewInterface = self;
    [super viewDidLoad];
    self.navigationItem.title = @"检查记录";
    [self getCheckRecordData];
    self.tableView.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        [self getCheckRecordData];
    }];
}


-(void)getCheckRecordData{
    [SQCheckRecordModel getDataWithParams:@{@"m_id":UID} WithCallBack:^(SQCheckRecordModel * data) {
        [self detailModelwithArr:data.data withCallBack:nil];
        [self reloadTableView];
    }];
}


-(NSInteger)rowsCount:(NSInteger)section{
    return self.dataSouece.count;
}

-(BaseModel *)modelForCell:(NSIndexPath *)indexPath{
    return self.dataSouece[indexPath.row];
}


- (NSArray<NSArray<NSString *> *> *)classArr{
    return @[@[@"SQCheckRecordTableViewCell"]];
}



/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
